//Intro and game screens
var scr_title = new Array();
scr_title[0] = new Image();
scr_title[0].src = 'img/scr_title_0.gif';		//1
scr_title[0].onload = imageLoaded();

scr_title[1] = new Image();
scr_title[1].src = 'img/scr_title_1.gif';		//2
scr_title[1].onload = imageLoaded();

scr_title[2] = new Image();
scr_title[2].src = 'img/scr_title_2.gif';		//3
scr_title[2].onload = imageLoaded();

var scr_game = new Image();
scr_game.src = "img/scr_game.gif";
scr_game.onload = imageLoaded();				//4

var scr_frame = new Image();
scr_frame.src = "img/scr_frame.gif";
scr_frame.onload = imageLoaded();				//5

var scr_code = new Image();
scr_code.src = "img/scr_code.gif";
scr_code.onload = imageLoaded();				//6

//sprite sheets
var spr_bacock = new Image();
spr_bacock.src = 'img/spr_bacock_sheet.gif';	//7
spr_bacock.onload - imageLoaded();
var spr_chicken = new Image();
spr_chicken.src = 'img/spr_chicken_sheet.gif';	//8
spr_chicken.onload - imageLoaded();
var spr_gameover = new Image();
spr_gameover.src = 'img/spr_gameover_sheet.gif';//9
spr_gameover.onload - imageLoaded();
var spr_life = new Image();
spr_life.src = 'img/spr_life.gif';				//10
spr_life.onload - imageLoaded();

//sounds
var musicSnd = new Audio("img/music.m4a");
var explosionSnd = new Audio("img/explosion.m4a");
musicSnd.loop = true;